﻿using Jy.Abp.GeneralTree;
using Microsoft.EntityFrameworkCore;
using System;

namespace AbpProjectTemplate.Trees
{
    [Index(nameof(Code))]
    public class Tree : GeneralTreeBase<Tree,Guid>, IGeneralTree<Tree, Guid>
    {
        /// <summary>
        /// 分类类型
        /// </summary>
        public TreeType Type { get; set; }


        public Tree()
        {

        }

        public Tree(string name, Guid? parentId = null, string description = null)
        {
            Name = name;
            ParentId = parentId;
            Description = description;
        }
    }
}
